﻿using Huirui.Cavan.Domain.Seedwork;
using System;
using System.Collections;

namespace Huirui.Cavan.Domain.MainBoundedContext.SalesModule
{
    #region ReceiptDetail

    /// <summary>
    /// ReceiptDetail object for NHibernate mapped table 'ReceiptDetail'.
    /// </summary>
    [Serializable]
    public class ReceiptDetail : Persistent<long>
    {
        #region Member Variables

        protected Receivables _receivables;
        protected decimal _amount;
        protected Receipt _receipt;
        protected DateTime _certificateDate;

        #endregion

        #region Constructors

        public ReceiptDetail() { }

        public ReceiptDetail(decimal amount, DateTime certificateDate, DateTime createDate, DateTime modifyDate, int editUser, Receipt receipt, Receivables receivables)
        {
            this._amount = amount;
            this._createDate = createDate;
            this._modifyDate = modifyDate;
            this._editUser = editUser;
            this._receipt = receipt;
            this._receivables = receivables;
            this._certificateDate = certificateDate;
        }

        #endregion

        #region Public Properties

        public virtual Receivables Receivables
        {
            get { return _receivables; }
            set { _receivables = value; }
        }

        public virtual decimal Amount
        {
            get { return _amount; }
            set { _amount = value; }
        }

        public virtual Receipt Receipt
        {
            get { return _receipt; }
            set { _receipt = value; }
        }

        public virtual DateTime CertificateDate
        {
            get { return _certificateDate; }
            set { _certificateDate = value; }
        }
        #endregion
    }
    #endregion
}